package com.yzpass.api.security.annotation;

import com.yzpass.api.security.PermissionLevel;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.List;

/**
 *  满足任一权限即通过
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RequireAnyPermission {
    PermissionLevel level() default PermissionLevel.READ; // 指定所需的权限级别
    String[] value(); // 指定所需权限的资源名称
    RequirePermission[] permissions() default {};

}